package com.maimao.model.user.input;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author MaoLin Wang
 * @date 2020/12/24 7:10 下午
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class RegisterInput {
    @NotBlank(message = "请输入手机验证码")
    private String code;
    @NotBlank(message = "请填写用户名")
    private String username;
    @NotBlank(message = "请输入密码")
    private String password;
    @NotBlank(message = "请输入手机号")
    private String mobile;

    @Override
    public String toString() {
        return "RegisterInput{" +
                "code='" + code + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
